package com.wavefront.obj.elements;

import java.util.ArrayList;

public class Mesh {

	@SuppressWarnings("unused")
	private String name;

	private ArrayList<Face> faces = new ArrayList<Face>();

	public double radius = 0;

	private int type;

	public Mesh(String name) {
		this.name = name;
	}

	public void calculateRadius() {
//		double currentNorm = 0;
//		for (VertexG vertex : vertices) {
//			currentNorm = vertex.norm();
//			if (currentNorm > radius)
//				radius = currentNorm;
//		}

	}

	public Face createFace(int type) {
		Face face = new Face(type);
		faces.add(face);
		return face;
	}

	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}
}
